JC = javac
.SUFFIXES: .java .class
.java.class:
	$(JC) $*.java

CLASSES = \
	msg.java \
	DbStorage.java \
	client.java \
	ServiceProviderServer.java \
	rmibroker.java \
	LookupProvider.java \
	broker.java \
	server.java \
	add_number_provider.java \
	subtract_number_provider.java \
	multiply_number_provider.java \
	divide_number_provider.java \
	date_provider.java \
	generate_random_provider.java 

default: classes

classes: $(CLASSES:.java=.class)

clean:
	$(RM) *.class *~

broker:
	$(JC) msg.java \
	DbStorage.java \
	ServiceProviderServer.java \
	rmibroker.java \
	LookupProvider.java \
	broker.java

client:
	$(JC) msg.java \
	client.java
	
server:
	$(JC) server.java \
	add_number_provider.java \
	subtract_number_provider.java \
	multiply_number_provider.java \
	divide_number_provider.java \
	date_provider.java \
	generate_random_provider.java 	
